using System.ComponentModel;

namespace MDSAdministration
{
    public class ResourceWrapper : INotifyPropertyChanged
    {
        private const string CurrentModelPropertyName = "currentModel";

        private static CompareModel _currentModel;

        public CompareModel CurrentModel
        {
            get { return _currentModel; }
            set
            {
                _currentModel = value;
                NotifyPropertyChanged(CurrentModelPropertyName);
            }
        }

         #region INotifyPropertyChanged Implementation

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion INotifyPropertyChanged Implementation
    }
}